package com.example.zjsr.pojo.ilabresult;

import com.example.zjsr.common.Key;
import lombok.Data;

import java.util.List;

/**
 * ilab提交成绩实体
 * @author lvyongwei
 * @date 2021-05-14
 */
@Data
public class IlabSport {

    /**
     * 用户名
     */
    private String username;

    /**
     * 实验名称
     */
    private String title;

    /**
     * 实验状态：1 - 完成；2 - 未完成
     */
    private Integer status;

    /**
     * 总分
     */
    private Integer score;

    /**
     * 实验开始时间
     */
    private Long startTime;

    /**
     * 实验结束时间
     */
    private Long endTime;

    /**
     * 实验用时
     */
    private Integer timeUsed;

    /**
     * 接入平台编号
     */
    private Integer appid = (int) Key.issuerId;

    /**
     * 实验平台实验记录ID：平台唯一     即该实验下提交的编号,可以自己记录从1开始
     */
    private String originId;

    /**
     * 实验步骤
     */
    private List<Step> steps;

    public IlabSport() {
    }

    public IlabSport(String username, String title, Integer status, Integer score, Long startTime, Long endTime, Integer timeUsed, Integer appid, String originId, List<Step> steps) {
        this.username = username;
        this.title = title;
        this.status = status;
        this.score = score;
        this.startTime = startTime;
        this.endTime = endTime;
        this.timeUsed = timeUsed;
        this.appid = appid;
        this.originId = originId;
        this.steps = steps;
    }
}
